<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>登陆用户</title>

<script type="text/javascript">
	function login(){
		var form = document.forms[0];
		form.action = "<%=basePath%>+login";
		form.method = "post";
		form.submit();
	}
</script>

</head>

<body>
	<h1>登陆</h1>
	<form action="" name="userForm">
		用户名：<input type="text" name="userName"> 密码：<input type="text"
			name="age"> <input type="button" value="登陆"
			onclick="addUser()">
	</form>
</body>
</html>
